package com.gzucm.Scholarship.entity;

import com.gzucm.Scholarship.common.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Data
@Entity
@ApiModel
@NoArgsConstructor
@Table(name = "student_info")
public class Student extends BaseEntity {

    @ApiModelProperty(value = "用户名")
    @Column(name = "name", nullable = false)
    private String name;

    @ApiModelProperty(value = "学号")
    @Column(name = "number", nullable = false, unique = true)
    private String number;

    @ApiModelProperty(value = "身份证")
    @Column(name = "id_card", nullable = false, unique = true)
    private String idCard;

}
